<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wickr-crypto-c: src/wickrcrypto/include/wickrcrypto/cipher.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">wickr-crypto-c
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_92a70b6cc7e213c660915fdf1190028f.html">wickrcrypto</a></li><li class="navelem"><a class="el" href="dir_db4377ef08cfba82f5e7141624102360.html">include</a></li><li class="navelem"><a class="el" href="dir_2adb4122f2f58e588d09641dee9865e2.html">wickrcrypto</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">cipher.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright © 2012-2018 Wickr Inc.  All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This code is being released for EDUCATIONAL, ACADEMIC, AND CODE REVIEW PURPOSES</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * ONLY.  COMMERCIAL USE OF THE CODE IS EXPRESSLY PROHIBITED.  For additional details,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * please see LICENSE</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * THE CODE IS MADE AVAILABLE &quot;AS-IS&quot; AND WITHOUT ANY EXPRESS OR</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * IMPLIED GUARANTEES AS TO FITNESS, MERCHANTABILITY, NON-</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * INFRINGEMENT OR OTHERWISE. IT IS NOT BEING PROVIDED IN TRADE BUT ON</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * A VOLUNTARY BASIS ON BEHALF OF THE AUTHOR’S PART FOR THE BENEFIT</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * OF THE LICENSEE AND IS NOT MADE AVAILABLE FOR CONSUMER USE OR ANY</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * OTHER USE OUTSIDE THE TERMS OF THIS LICENSE. ANYONE ACCESSING THE</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * CODE SHOULD HAVE THE REQUISITE EXPERTISE TO SECURE THEIR SYSTEM</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * AND DEVICES AND TO ACCESS AND USE THE CODE FOR REVIEW PURPOSES</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * ONLY. LICENSEE BEARS THE RISK OF ACCESSING AND USING THE CODE. IN</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * PARTICULAR, AUTHOR BEARS NO LIABILITY FOR ANY INTERFERENCE WITH OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * ADVERSE EFFECT THAT MAY OCCUR AS A RESULT OF THE LICENSEE</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * ACCESSING AND/OR USING THE CODE ON LICENSEE’S SYSTEM.</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#ifndef cipher_h</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#define cipher_h</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;buffer.h&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;kdf.h&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> { CIPHER_ID_AES256_GCM = 0, CIPHER_ID_AES256_CTR = 1 } wickr_cipher_id;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structwickr__cipher.html">   56</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__cipher.html">wickr_cipher</a> {</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structwickr__cipher.html#a2ce240f5bd396df05ddd4f30ba944b36">   57</a></span>&#160;    wickr_cipher_id <a class="code" href="structwickr__cipher.html#a2ce240f5bd396df05ddd4f30ba944b36">cipher_id</a>;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structwickr__cipher.html#aec5724cc59d20ae5d7cbb73684b53457">   58</a></span>&#160;    uint8_t <a class="code" href="structwickr__cipher.html#aec5724cc59d20ae5d7cbb73684b53457">key_len</a>;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structwickr__cipher.html#a1cd39366934a31345d63ff42deeac1e3">   59</a></span>&#160;    uint8_t <a class="code" href="structwickr__cipher.html#a1cd39366934a31345d63ff42deeac1e3">iv_len</a>;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structwickr__cipher.html#a5ec0af7f260a3f14e31ce8db899aa06e">   60</a></span>&#160;    uint8_t <a class="code" href="structwickr__cipher.html#a5ec0af7f260a3f14e31ce8db899aa06e">auth_tag_len</a>;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structwickr__cipher.html#a21499cb78c9db301261c9d0d647b3e50">   61</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structwickr__cipher.html#a21499cb78c9db301261c9d0d647b3e50">is_authenticated</a>;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;};</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__cipher.html">wickr_cipher</a> <a class="code" href="structwickr__cipher.html">wickr_cipher_t</a>;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="structwickr__cipher.html">wickr_cipher_t</a> CIPHER_AES256_GCM = { CIPHER_ID_AES256_GCM, 32, 12, 16, <span class="keyword">true</span> };</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="structwickr__cipher.html">wickr_cipher_t</a> CIPHER_AES256_CTR = { CIPHER_ID_AES256_CTR, 32, 16, 0, <span class="keyword">false</span> };</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="keyword">const</span> <a class="code" href="structwickr__cipher.html">wickr_cipher_t</a> *<a class="code" href="group__wickr__cipher.html#ga2b7a8bc33e1fd5af61763398ea9a4013">wickr_cipher_find</a>(uint8_t <a class="code" href="structwickr__cipher.html#a2ce240f5bd396df05ddd4f30ba944b36">cipher_id</a>);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structwickr__cipher__result.html">   97</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__cipher__result.html">wickr_cipher_result</a> {</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structwickr__cipher__result.html#a80f15a012dbe1342d0aaa6f3e7072aa9">   98</a></span>&#160;    <a class="code" href="structwickr__cipher.html">wickr_cipher_t</a> <a class="code" href="structwickr__cipher__result.html#a80f15a012dbe1342d0aaa6f3e7072aa9">cipher</a>;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structwickr__cipher__result.html#a741b49cc09cddfce1924e7a26ab8b35b">   99</a></span>&#160;    <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__cipher__result.html#a741b49cc09cddfce1924e7a26ab8b35b">iv</a>;</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structwickr__cipher__result.html#a29fe7c04025f39cc574ac41f846d167a">  100</a></span>&#160;    <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__cipher__result.html#a29fe7c04025f39cc574ac41f846d167a">cipher_text</a>;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structwickr__cipher__result.html#aaaf0227a4c8f3288e221765d6dce371e">  101</a></span>&#160;    <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__cipher__result.html#aaaf0227a4c8f3288e221765d6dce371e">auth_tag</a>;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;};</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__cipher__result.html">wickr_cipher_result</a> <a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a>;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *<a class="code" href="group__wickr__cipher.html#ga234b60967d0b3ef0088ca3ac30755dde">wickr_cipher_result_create</a>(<a class="code" href="structwickr__cipher.html">wickr_cipher_t</a> <a class="code" href="structwickr__cipher__result.html#a80f15a012dbe1342d0aaa6f3e7072aa9">cipher</a>, <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__cipher__result.html#a741b49cc09cddfce1924e7a26ab8b35b">iv</a>, <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__cipher__result.html#a29fe7c04025f39cc574ac41f846d167a">cipher_text</a>, <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__cipher__result.html#aaaf0227a4c8f3288e221765d6dce371e">auth_tag</a>);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *<a class="code" href="group__wickr__cipher.html#gace82050fcc8b7932df9a9e8109a2fc1d">wickr_cipher_result_copy</a>(<span class="keyword">const</span> <a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *result);</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__cipher.html#gad5d22ca53abc4397d88040f0f8003021">wickr_cipher_result_destroy</a>(<a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> **result);</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__wickr__cipher.html#ga3f1b679c199987148952816b6fc4c009">wickr_cipher_result_is_valid</a>(<span class="keyword">const</span> <a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *result);</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__wickr__cipher.html#gacda386115dc52f83a0518f8ac0dad6a2">wickr_cipher_result_serialize</a>(<span class="keyword">const</span> <a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *result);</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *<a class="code" href="group__wickr__cipher.html#gad42314812c457855c3799632494c91a7">wickr_cipher_result_from_buffer</a>(<span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *buffer);</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="structwickr__cipher__key.html">  189</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__cipher__key.html">wickr_cipher_key</a> {</div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="structwickr__cipher__key.html#a6506e1a07f7bc2c5ceeb0ca5ce81385b">  190</a></span>&#160;    <a class="code" href="structwickr__cipher.html">wickr_cipher_t</a> <a class="code" href="structwickr__cipher__key.html#a6506e1a07f7bc2c5ceeb0ca5ce81385b">cipher</a>;</div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="structwickr__cipher__key.html#a0bf9fa22f1db80010410ae609aac8a2a">  191</a></span>&#160;    <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__cipher__key.html#a0bf9fa22f1db80010410ae609aac8a2a">key_data</a>;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;};</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__cipher__key.html">wickr_cipher_key</a> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a>;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *<a class="code" href="group__wickr__cipher.html#ga73e2a916ba0ff19517e30a65a68390f0">wickr_cipher_key_create</a>(<a class="code" href="structwickr__cipher.html">wickr_cipher_t</a> <a class="code" href="structwickr__cipher__key.html#a6506e1a07f7bc2c5ceeb0ca5ce81385b">cipher</a>, <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__cipher__key.html#a0bf9fa22f1db80010410ae609aac8a2a">key_data</a>);</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *<a class="code" href="group__wickr__cipher.html#gaa473bc83f82d6353aa6f4cb4e36bf4f0">wickr_cipher_key_copy</a>(<span class="keyword">const</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *key);</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__cipher.html#ga45790b3023ccb261c03346b069aca763">wickr_cipher_key_destroy</a>(<a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> **key);</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__wickr__cipher.html#ga8716aebf03497c379d5ff81fe32cde32">wickr_cipher_key_serialize</a>(<span class="keyword">const</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *key);</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;<a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *<a class="code" href="group__wickr__cipher.html#ga1c073b87f2141cf35a1d91ba10f9e5ba">wickr_cipher_key_from_buffer</a>(<span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *buffer);</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;}</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* cipher_h */</span><span class="preprocessor"></span></div><div class="ttc" id="group__wickr__cipher_html_gad42314812c457855c3799632494c91a7"><div class="ttname"><a href="group__wickr__cipher.html#gad42314812c457855c3799632494c91a7">wickr_cipher_result_from_buffer</a></div><div class="ttdeci">wickr_cipher_result_t * wickr_cipher_result_from_buffer(const wickr_buffer_t *buffer)</div></div>
<div class="ttc" id="structwickr__cipher__result_html_a741b49cc09cddfce1924e7a26ab8b35b"><div class="ttname"><a href="structwickr__cipher__result.html#a741b49cc09cddfce1924e7a26ab8b35b">wickr_cipher_result::iv</a></div><div class="ttdeci">wickr_buffer_t * iv</div><div class="ttdef"><b>Definition:</b> cipher.h:99</div></div>
<div class="ttc" id="structwickr__cipher_html_a5ec0af7f260a3f14e31ce8db899aa06e"><div class="ttname"><a href="structwickr__cipher.html#a5ec0af7f260a3f14e31ce8db899aa06e">wickr_cipher::auth_tag_len</a></div><div class="ttdeci">uint8_t auth_tag_len</div><div class="ttdef"><b>Definition:</b> cipher.h:60</div></div>
<div class="ttc" id="group__wickr__cipher_html_gacda386115dc52f83a0518f8ac0dad6a2"><div class="ttname"><a href="group__wickr__cipher.html#gacda386115dc52f83a0518f8ac0dad6a2">wickr_cipher_result_serialize</a></div><div class="ttdeci">wickr_buffer_t * wickr_cipher_result_serialize(const wickr_cipher_result_t *result)</div></div>
<div class="ttc" id="structwickr__cipher__result_html_aaaf0227a4c8f3288e221765d6dce371e"><div class="ttname"><a href="structwickr__cipher__result.html#aaaf0227a4c8f3288e221765d6dce371e">wickr_cipher_result::auth_tag</a></div><div class="ttdeci">wickr_buffer_t * auth_tag</div><div class="ttdef"><b>Definition:</b> cipher.h:101</div></div>
<div class="ttc" id="structwickr__buffer_html"><div class="ttname"><a href="structwickr__buffer.html">wickr_buffer</a></div><div class="ttdoc">Represents an array of bytes and the length of the allocation associated with those bytes.</div><div class="ttdef"><b>Definition:</b> buffer.h:51</div></div>
<div class="ttc" id="group__wickr__cipher_html_gace82050fcc8b7932df9a9e8109a2fc1d"><div class="ttname"><a href="group__wickr__cipher.html#gace82050fcc8b7932df9a9e8109a2fc1d">wickr_cipher_result_copy</a></div><div class="ttdeci">wickr_cipher_result_t * wickr_cipher_result_copy(const wickr_cipher_result_t *result)</div></div>
<div class="ttc" id="structwickr__cipher_html"><div class="ttname"><a href="structwickr__cipher.html">wickr_cipher</a></div><div class="ttdoc">Represents a cipher that can be used in the crypto_engine. This meta object holds parameters for the ...</div><div class="ttdef"><b>Definition:</b> cipher.h:56</div></div>
<div class="ttc" id="structwickr__cipher__key_html_a6506e1a07f7bc2c5ceeb0ca5ce81385b"><div class="ttname"><a href="structwickr__cipher__key.html#a6506e1a07f7bc2c5ceeb0ca5ce81385b">wickr_cipher_key::cipher</a></div><div class="ttdeci">wickr_cipher_t cipher</div><div class="ttdef"><b>Definition:</b> cipher.h:190</div></div>
<div class="ttc" id="structwickr__cipher_html_aec5724cc59d20ae5d7cbb73684b53457"><div class="ttname"><a href="structwickr__cipher.html#aec5724cc59d20ae5d7cbb73684b53457">wickr_cipher::key_len</a></div><div class="ttdeci">uint8_t key_len</div><div class="ttdef"><b>Definition:</b> cipher.h:58</div></div>
<div class="ttc" id="group__wickr__cipher_html_ga73e2a916ba0ff19517e30a65a68390f0"><div class="ttname"><a href="group__wickr__cipher.html#ga73e2a916ba0ff19517e30a65a68390f0">wickr_cipher_key_create</a></div><div class="ttdeci">wickr_cipher_key_t * wickr_cipher_key_create(wickr_cipher_t cipher, wickr_buffer_t *key_data)</div></div>
<div class="ttc" id="structwickr__cipher_html_a21499cb78c9db301261c9d0d647b3e50"><div class="ttname"><a href="structwickr__cipher.html#a21499cb78c9db301261c9d0d647b3e50">wickr_cipher::is_authenticated</a></div><div class="ttdeci">bool is_authenticated</div><div class="ttdef"><b>Definition:</b> cipher.h:61</div></div>
<div class="ttc" id="structwickr__cipher__key_html_a0bf9fa22f1db80010410ae609aac8a2a"><div class="ttname"><a href="structwickr__cipher__key.html#a0bf9fa22f1db80010410ae609aac8a2a">wickr_cipher_key::key_data</a></div><div class="ttdeci">wickr_buffer_t * key_data</div><div class="ttdef"><b>Definition:</b> cipher.h:191</div></div>
<div class="ttc" id="group__wickr__cipher_html_gaa473bc83f82d6353aa6f4cb4e36bf4f0"><div class="ttname"><a href="group__wickr__cipher.html#gaa473bc83f82d6353aa6f4cb4e36bf4f0">wickr_cipher_key_copy</a></div><div class="ttdeci">wickr_cipher_key_t * wickr_cipher_key_copy(const wickr_cipher_key_t *key)</div></div>
<div class="ttc" id="structwickr__cipher_html_a2ce240f5bd396df05ddd4f30ba944b36"><div class="ttname"><a href="structwickr__cipher.html#a2ce240f5bd396df05ddd4f30ba944b36">wickr_cipher::cipher_id</a></div><div class="ttdeci">wickr_cipher_id cipher_id</div><div class="ttdef"><b>Definition:</b> cipher.h:57</div></div>
<div class="ttc" id="group__wickr__cipher_html_ga45790b3023ccb261c03346b069aca763"><div class="ttname"><a href="group__wickr__cipher.html#ga45790b3023ccb261c03346b069aca763">wickr_cipher_key_destroy</a></div><div class="ttdeci">void wickr_cipher_key_destroy(wickr_cipher_key_t **key)</div></div>
<div class="ttc" id="structwickr__cipher__result_html_a29fe7c04025f39cc574ac41f846d167a"><div class="ttname"><a href="structwickr__cipher__result.html#a29fe7c04025f39cc574ac41f846d167a">wickr_cipher_result::cipher_text</a></div><div class="ttdeci">wickr_buffer_t * cipher_text</div><div class="ttdef"><b>Definition:</b> cipher.h:100</div></div>
<div class="ttc" id="structwickr__cipher__result_html"><div class="ttname"><a href="structwickr__cipher__result.html">wickr_cipher_result</a></div><div class="ttdef"><b>Definition:</b> cipher.h:97</div></div>
<div class="ttc" id="structwickr__cipher__result_html_a80f15a012dbe1342d0aaa6f3e7072aa9"><div class="ttname"><a href="structwickr__cipher__result.html#a80f15a012dbe1342d0aaa6f3e7072aa9">wickr_cipher_result::cipher</a></div><div class="ttdeci">wickr_cipher_t cipher</div><div class="ttdef"><b>Definition:</b> cipher.h:98</div></div>
<div class="ttc" id="structwickr__cipher__key_html"><div class="ttname"><a href="structwickr__cipher__key.html">wickr_cipher_key</a></div><div class="ttdef"><b>Definition:</b> cipher.h:189</div></div>
<div class="ttc" id="group__wickr__cipher_html_ga234b60967d0b3ef0088ca3ac30755dde"><div class="ttname"><a href="group__wickr__cipher.html#ga234b60967d0b3ef0088ca3ac30755dde">wickr_cipher_result_create</a></div><div class="ttdeci">wickr_cipher_result_t * wickr_cipher_result_create(wickr_cipher_t cipher, wickr_buffer_t *iv, wickr_buffer_t *cipher_text, wickr_buffer_t *auth_tag)</div></div>
<div class="ttc" id="group__wickr__cipher_html_ga2b7a8bc33e1fd5af61763398ea9a4013"><div class="ttname"><a href="group__wickr__cipher.html#ga2b7a8bc33e1fd5af61763398ea9a4013">wickr_cipher_find</a></div><div class="ttdeci">const wickr_cipher_t * wickr_cipher_find(uint8_t cipher_id)</div></div>
<div class="ttc" id="group__wickr__cipher_html_ga8716aebf03497c379d5ff81fe32cde32"><div class="ttname"><a href="group__wickr__cipher.html#ga8716aebf03497c379d5ff81fe32cde32">wickr_cipher_key_serialize</a></div><div class="ttdeci">wickr_buffer_t * wickr_cipher_key_serialize(const wickr_cipher_key_t *key)</div></div>
<div class="ttc" id="group__wickr__cipher_html_ga3f1b679c199987148952816b6fc4c009"><div class="ttname"><a href="group__wickr__cipher.html#ga3f1b679c199987148952816b6fc4c009">wickr_cipher_result_is_valid</a></div><div class="ttdeci">bool wickr_cipher_result_is_valid(const wickr_cipher_result_t *result)</div></div>
<div class="ttc" id="structwickr__cipher_html_a1cd39366934a31345d63ff42deeac1e3"><div class="ttname"><a href="structwickr__cipher.html#a1cd39366934a31345d63ff42deeac1e3">wickr_cipher::iv_len</a></div><div class="ttdeci">uint8_t iv_len</div><div class="ttdef"><b>Definition:</b> cipher.h:59</div></div>
<div class="ttc" id="group__wickr__cipher_html_ga1c073b87f2141cf35a1d91ba10f9e5ba"><div class="ttname"><a href="group__wickr__cipher.html#ga1c073b87f2141cf35a1d91ba10f9e5ba">wickr_cipher_key_from_buffer</a></div><div class="ttdeci">wickr_cipher_key_t * wickr_cipher_key_from_buffer(const wickr_buffer_t *buffer)</div></div>
<div class="ttc" id="group__wickr__cipher_html_gad5d22ca53abc4397d88040f0f8003021"><div class="ttname"><a href="group__wickr__cipher.html#gad5d22ca53abc4397d88040f0f8003021">wickr_cipher_result_destroy</a></div><div class="ttdeci">void wickr_cipher_result_destroy(wickr_cipher_result_t **result)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
